<?php
/*
 * @Author: your name
 * @Date: 2021-12-07 09:50:02
 * @LastEditTime: 2021-12-21 22:10:08
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \property\app\Http\Controllers\find_shop\User.php
 */

namespace App\Http\Controllers\find_shop;
use Illuminate\Support\Facades\Request;
use App\Models\admin_model\FindShopSubscribe as FindShopSubscribeDB;
class FindShopSubscribe extends BaseController{
      

      //免费发布
      public function subscribeList(){
          $openid =   $this->getLoginMsg();
          return   $this->create(200, '查询成功', FindShopSubscribeDB::subscribePlan($openid) );
     }



     public function subscribeAdd(){
         if(Request::has('formData')){
              $formData = Request::input('formData');
              $formData['user_openid'] =   $this->getLoginMsg();
              $id =  redis_mysql_add_return('find_shop_subscribe',$formData);
              return $this->create(200,'添加成功', $id);
         }
     }
    
    

}